package com.matt.sooncleaner.junk

import android.view.ViewGroup.MarginLayoutParams
import androidx.core.view.updateLayoutParams
import com.blankj.utilcode.util.BarUtils
import com.matt.sooncleaner.R
import com.matt.sooncleaner.arch.ArchFragment
import com.matt.sooncleaner.databinding.FragmentCleanCompletedBinding

class CleanCompletedFragment: ArchFragment<FragmentCleanCompletedBinding>() {

    override fun onInitView(binding: FragmentCleanCompletedBinding) {
        super.onInitView(binding)
        BarUtils.setStatusBarLightMode(requireActivity(), true)
        BarUtils.setStatusBarColor(requireActivity(), resources.getColor(R.color.windowbackground_color))
        BarUtils.transparentStatusBar(requireActivity().window)
        binding.toolbar.updateLayoutParams<MarginLayoutParams> {
            topMargin = BarUtils.getStatusBarHeight()
        }
        binding.toolbar.setNavigationOnClickListener {
            requireActivity().finish()
        }
        binding.doneBtn.setOnClickListener {
            requireActivity().finish()
        }
    }
}